package com.chengshi.shop.model.order;

import com.chengshi.shop.model.goods.ProductInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单提交数据封装
 * @author xuxinlong
 */
public class OrderInputBean {

    /**
     * 用户id
     */
    private Integer memberId;
    /**
     * 收货地址id
     */
    private Integer addressId;
    /**
     * 订单备注
     */
    private String markText;
    /**
     * 货品id和购买数量
     */
    private List<ProductInfo> productInfoList = new ArrayList<>();

    /**
     * 是否使用积分
     */
    private Boolean isUsePoints = false;
    /**
     * 优惠券id
     */
    private Integer memberCouponId;

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getMarkText() {
        return markText;
    }

    public void setMarkText(String markText) {
        this.markText = markText;
    }

    public Integer getMemberCouponId() {
        return memberCouponId;
    }

    public void setMemberCouponId(Integer memberCouponId) {
        this.memberCouponId = memberCouponId;
    }

    public List<ProductInfo> getProductInfoList() {
        return productInfoList;
    }

    public void setProductInfoList(List<ProductInfo> productInfoList) {
        this.productInfoList = productInfoList;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Boolean getIsUsePoints() {
        return isUsePoints;
    }

    public void setIsUsePoints(Boolean isUsePoints) {
        this.isUsePoints = isUsePoints;
    }
}
